package com.wenan.ui.reports
{
	import com.wenan.data.Parameter;
	import com.wenan.data.ParameterCollection;
	import com.wenan.data.ReportData;
	import com.wenan.data.StringUtil;
	
	import mx.containers.HBox;
	import mx.containers.VBox;
	import mx.controls.Button;
	import mx.controls.Label;
	import mx.controls.Spacer;
	import mx.core.UIComponent;

	public class ReportInfo
	{
		private var _reportData:ReportData;
		
		public function ReportInfo()
		{
		}

		public function get title():String
		{
			return null;
		}
		
		public function get xField():String
		{
			return null;
		}
		
		public function set xField(value:String):void
		{
		}
		
		public function get yFields():Array
		{
			return null;
		}
		
		public function set yFields(value:Array):void
		{
		}
		
		public function get reportData():ReportData
		{
			return _reportData;
		}
		
		public function set reportData(value:ReportData):void
		{
			_reportData = value;
		}
		
		public function fillParameters(parameters:ParameterCollection):void
		{
			parameters.add(new Parameter("xField", xField));
			parameters.add(new Parameter("yFields", StringUtil.toFieldStr(yFields)));
		}
		
		public function createReportPanel():UIComponent
		{
			return null;
		}
	}
}